<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
    function Throttle(fn,interval)
    {
        let startTime = 0;
        const _throttle = function(...args)
        {
            let nowTime = Date.now();
            if(startTime+interval-nowTime<=0)
            {
                fn.call(this,args);
                startTime = nowTime;
            }
        }

        return _throttle;
    }
</script>
<body>
    
</body>
</html>